Skip to content

Remove sequence as a distinct element + allow decisions/subtree after action - #114

Merged
MegaIng merged 6 commits into
masterfrom
feature/remove_sequences
Oct 12, 2026
Merged

MegaIng merged 6 commits into
masterfrom
feature/remove_sequences

Conversation

@MegaIng

@MegaIng MegaIng commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

also add a comprehensive test suite

Summary

This PR changes the implementation of action sequences from a distinct TreeElement to instead have actions be a chain where they each refer to the tree element that comes after them. This allows for an easy syntax extension where Actions can come before decisions or invocations of subtrees (see #66). The code here is generally simplified quite a bit without any changes in the edge cases I am aware of.

The display in the visualization is changed slightly. Now it's a chain of rectangular boxes which may also have a decision as a child.

To verify that nothing broke I also (let claude) created a comprehensive runtime test suite which didn't exists before. This is the only the reason the PR adds lines instead of removing them.

Related issues

Closes #66

Checklist

  • Run colcon build
  • Write documentation
  • Create issues for future work
  • Test on your machine
  • Test on the robot
  • This PR is on our Software project board

@MegaIng
MegaIng requested a review from Flova July 9, 2026 06:28
@MegaIng
MegaIng force-pushed the feature/remove_sequences branch from c03a056 to 54fad4c Compare July 9, 2026 07:06
@MegaIng MegaIng added this to Software Sep 6, 2026
@MegaIng MegaIng moved this to 👀 In review in Software Sep 6, 2026
@jaagut
jaagut self-requested a review September 28, 2026 16:30

@jaagut jaagut left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not really look at the tests. But this seems fine. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Support subtrees in sequence elements

2 participants